//
//  NSError+YZM.h
//  YZMicroStock
//
//  Created by wangminhong on 16/3/22.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <Foundation/Foundation.h>

#define YZBUSINESS_ERROR_DOMAIN @"cn.yztz.business"
#define YZNETWORK_ERROR_DOMAIN @"cn.yztz.network"

@interface NSError (YZM)


/**
 * 错误的网络返回
 */
+ (NSError *)yz_errorWithBadResponse;

+ (NSError *)yz_errorWithMessage: (NSString *)message;

- (void)yz_showMessage;
- (BOOL)isNoNetwork;

+ (NSString *)yz_stringForNoWifi;

+ (NSString *)yz_stringForAbnormal;

+ (void)yz_showMessageForNoWifi;

+ (void)yz_showMessageForAbnormal;


@end
